<?php

class EventManager_ErrorController extends Zend_Controller_Action
{

	public function init()
	{
		/* Initialize action controller here */
	}

	public function indexAction()
	{
		// action body
	}
	
	public function errorAction()
	{
      
	  	
	  $error = $this->_getParam('error_handler');
      Zend_Debug::dump($error->exception);
	  switch ($error->type)
	  {
        case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
        case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
        $this->getResponse()->setHttpResponseCode(404);
        $this->view->statusCode = 404;
        break;
        default:
        break;
      }
	}


}

